import {
    createStore,
    applyMiddleware,//中间件
    combineReducers
}from 'redux'
import thunk from 'redux-thunk'
import countReducer from './reducers/countReducer'
import movieReducer from './reducers/movieReducer'
//创建store 并提供了 对应的reducer
const allReducer =combineReducers({
    count:countReducer,
    movie:movieReducer
})
const store = createStore(allReducer,applyMiddleware(thunk))
export default store